FROM openjdk:21-jdk-oracle
MAINTAINER Angus
RUN mkdir -p /opt/run \
/opt/run/temp \
ENV SERVER_PORT=8080
COPY ./fonts/ /usr/share/fonts/
WORKDIR /opt/run
EXPOSE ${SERVER_PORT}
ADD ./app.jar ./app.jar
ENV JAVA_TOOL_OPTIONS="-Xms1024m -Xmx2048m"
ENV SPRING_PROFILES_ACTIVE="prod"
ENTRYPOINT ["java","-jar","app.jar"]